<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp" %>
<tfoot>
<tr>
    <td colspan="6" class="footable-visible">
        <ul class="pagination pull-right">

            <%--第一页--%>
            <c:if test="${page.currentPage >1}">
                <li class="footable-page-arrow"><a data-page="first" href="?${href}query.begin=${page.startPage}">«</a>
                </li>
            </c:if>
            <c:if test="${page.currentPage <=1}">
                <li class="footable-page-arrow disabled"><a data-page="first" href="javascript:;">«</a></li>
            </c:if>

            <%--上一页--%>
            <c:if test="${page.currentPage >1}">
                <li class="footable-page-arrow"><a data-page="prev" href="?${href}query.begin=${page.startPage}">‹</a>
                </li>
            </c:if>
            <c:if test="${page.currentPage <=1}">
                <li class="footable-page-arrow disabled"><a data-page="prev" href="javascript:;">‹</a></li>
            </c:if>

            <c:forEach var="x" begin="${page.startPage}" end="${page.endPage}" step="1">
                <c:if test="${x==page.currentPage}">
                    <li class="footable-page active"><a data-page="0" href="#">${page.currentPage}</a></li>
                </c:if>
                <c:if test="${x!=page.currentPage}">
                    <li class="footable-page"><a data-page="1" href="?${href}query.begin=${x}">${x}</a></li>
                </c:if>
            </c:forEach>

            <%--下一页--%>
            <c:if test="${page.currentPage < page.totalPage}">
                <li class="footable-page-arrow"><a data-page="next" href="?${href}query.begin=${page.endPage}">›</a>
                </li>
            </c:if>
            <c:if test="${page.currentPage >= page.totalPage}">
                <li class="footable-page-arrow disabled"><a data-page="next" href="javascript:;">›</a></li>
            </c:if>

            <%--最后一页--%>
            <c:if test="${page.currentPage < page.totalPage}">
                <li class="footable-page-arrow"><a data-page="last" href="?${href}query.begin=${page.endPage}">»</a>
                </li>
            </c:if>
            <c:if test="${page.currentPage >=page.totalPage}">
                <li class="footable-page-arrow disabled"><a data-page="last" href="javascript:;">»</a></li>
            </c:if>
        </ul>
    </td>
</tr>
</tfoot>



